﻿
namespace Keyki.NefClass.Kernel.Fuzzy.ChooceRule
{
	class ChooseContainer
	{
		public int AntecedentId;
		public double Fulfiment;

		public ChooseContainer(int antecedentId, double fulfiment)
		{
			AntecedentId = antecedentId;
			Fulfiment = fulfiment;
		}

		public override bool Equals(object obj)
		{
			if (!(obj is ChooseContainer))
			{
				return false;
			}

			return ((ChooseContainer) obj).AntecedentId == AntecedentId;
		}

		public override int GetHashCode()
		{
			return base.GetHashCode();
		}
	}
}
